/* 虚拟列表示例容器样式 */
.virtual-list-example {
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.virtual-list-example h2 {
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

/* 控制区域样式 */
.example-controls {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.control-group {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-group label {
  width: 120px;
  font-weight: 500;
}

.control-group input[type="range"] {
  flex: 1;
  max-width: 300px;
}

.control-group span {
  min-width: 80px;
  font-weight: 500;
  color: #666;
}

/* 统计信息样式 */
.example-stats {
  background: #e8f5e9;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.example-stats p {
  margin: 5px 0;
  color: #2e7d32;
  font-size: 14px;
}

/* 虚拟列表演示区域样式 */
.virtual-list-demo {
  margin-bottom: 30px;
}

/* 示例列表项样式 */
.example-list-item {
  display: flex;
  padding: 10px 15px;
  border-bottom: 1px solid #f0f0f0;
  height: 100%;
  box-sizing: border-box;
  align-items: center;
  transition: background-color 0.2s;
}

.example-list-item:hover {
  background-color: #f5f5f5;
}

.example-item-id {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #3f51b5;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0;
}

.example-item-content {
  flex: 1;
  overflow: hidden;
}

.example-item-title {
  margin: 0 0 5px 0;
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.example-item-description {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.example-item-date {
  font-size: 12px;
  color: #999;
}

/* 使用说明样式 */
.example-instructions {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #3f51b5;
}

.example-instructions h3 {
  margin-top: 0;
  color: #3f51b5;
}

.example-instructions pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 15px;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.5;
}

.example-instructions p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}